package cn.bdqn.domain;

import java.util.Date;
import java.util.List;

/**
 * (Purchase)实体类
 *
 * @author makejava
 * @since 2020-09-21 10:54:00
 */
public class Purchase  {
     /*
      *药库采购表id
     */
    private Integer id;
    /**
     * 采购编号自动生成 当前日期+随机数
     */
    private String pNumber;
    /**
     * 医生姓名
     */
    private String dName;
    /**
     * 采购负责医生的编号
     */
    private String dNumber;
    /**
     * 采购的时间
     */
    private Date pDate;
    /**
     * 采购的备注
     */
    private String pRemark;
    /**
     * 采购表的状态 药品采购是否全部完成默认1未完成 ,0全部完成
     */
    private Integer pStatus;
    /**
     * 采购的总金额
     * 药品单价*药品的数量
     */
    private Double pPrice;
    /*
     *一个采购表里面有多个药品信息
     */

    private List<PurchaseInfo> purchaseinfoList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getpNumber() {
        return pNumber;
    }

    public void setpNumber(String pNumber) {
        this.pNumber = pNumber;
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    public String getdNumber() {
        return dNumber;
    }

    public void setdNumber(String dNumber) {
        this.dNumber = dNumber;
    }

    public Date getpDate() {
        return pDate;
    }

    public void setpDate(Date pDate) {
        this.pDate = pDate;
    }

    public String getpRemark() {
        return pRemark;
    }

    public void setpRemark(String pRemark) {
        this.pRemark = pRemark;
    }

    public Integer getpStatus() {
        return pStatus;
    }

    public void setpStatus(Integer pStatus) {
        this.pStatus = pStatus;
    }

    public Double getpPrice() {
        return pPrice;
    }

    public void setpPrice(Double pPrice) {
        this.pPrice = pPrice;
    }

    public List<PurchaseInfo> getPurchaseinfoList() {
        return purchaseinfoList;
    }

    public void setPurchaseinfoList(List<PurchaseInfo> purchaseinfoList) {
        this.purchaseinfoList = purchaseinfoList;
    }

    @Override
    public String toString() {
        return "Purchase{" +
                "id=" + id +
                ", pNumber='" + pNumber + '\'' +
                ", dName='" + dName + '\'' +
                ", dNumber='" + dNumber + '\'' +
                ", pDate=" + pDate +
                ", pRemark='" + pRemark + '\'' +
                ", pStatus=" + pStatus +
                ", pPrice=" + pPrice +
                ", purchaseinfoList=" + purchaseinfoList +
                '}';
    }
}